package com.qinsoft.business.recomlog.dao;

import org.apache.ibatis.session.SqlSession;

import com.qinsoft.business.recomlog.bean.RecomLog;
import com.qinsoft.frame.messages.WriteMessage;
import com.qinsoft.frame.utils.DbUtil;


public class RecomLogDao
{
    public static void delete()
    {
        SqlSession sqlMap = null;
        try 
        {
            sqlMap= DbUtil.getSqlMapClient();
            sqlMap.delete("com.qinsoft.business.recomlog.sqlMap.recomlog.delete"); 
        }
        catch (Exception e) 
        {
            WriteMessage.WriteErrorLog("com.qinsoft.business.recomlog.dao.delete()", e);
        }
        finally
        {
            sqlMap.close();
        }
    }
    public static void main(String[] args)
    {
        delete();
    }
    public void addRomLog(RecomLog log){
    	SqlSession sqlMap = null;
        try 
        {
            sqlMap= DbUtil.getSqlMapClient();
            sqlMap.insert("com.qinsoft.business.recomlog.sqlMap.recomlog.addLog",log); 
        }
        catch (Exception e) 
        {
        	WriteMessage.WriteErrorLog(this.getClass().toString() + ".addRomLog("+ log +")", e);
        }
        finally
        {
            sqlMap.close();
        }
    }
}
